View Javadoc

1   package net.sourceforge.simplegamenet.chess;
2   
3   import java.io.Serializable;
4   
5   public class ChessMove implements Serializable {
6   
7       int sourceX;
8       int sourceY;
9       int destinationX;
10      int destinationY;
11      int chosenPieceType;
12  
13      public ChessMove(int sourceX, int sourceY, int destinationX, int destinationY,
14                       int chosenPieceType) {
15          this.sourceX = sourceX;
16          this.sourceY = sourceY;
17          this.destinationX = destinationX;
18          this.destinationY = destinationY;
19          this.chosenPieceType = chosenPieceType;
20      }
21  
22  }